/* {{ AURA-X: 重写样式 - 匹配参考图设计. Approval: 寸止 }} */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 14px;
  color: #333;
  background: #f5f5f5;
}

.container {
  width: 600px;
  min-height: 400px;
  max-height: 600px;
  background: #fff;
  overflow-y: auto;
}

header {
  background: #fff;
  padding: 16px 20px;
  border-bottom: 1px solid #e0e0e0;
}

.title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  background: #000;
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
}

.subtitle {
  color: #5b8cfa;
  font-size: 16px;
  font-weight: 500;
}

/* Tab导航 */
.tabs {
  display: flex;
  background: #fff;
  border-bottom: 2px solid #e0e0e0;
  padding: 0 20px;
}

.tab-btn {
  padding: 12px 20px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  color: #666;
  transition: all 0.3s;
  position: relative;
  font-weight: 500;
}

.tab-btn:hover {
  color: #5b8cfa;
}

.tab-btn.active {
  color: #5b8cfa;
  font-weight: 600;
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: #5b8cfa;
}

/* Tab内容 */
.tab-content {
  display: none;
  padding: 20px;
  animation: fadeIn 0.3s;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 警告框 */
.warning-box {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 16px;
}

.warning-icon {
  color: #ff9800;
  margin-right: 8px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  margin-top: 8px;
  cursor: pointer;
}

.checkbox-label input {
  margin-right: 8px;
}

/* 章节标题 */
.section-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #333;
}

.section-subtitle {
  font-size: 14px;
  font-weight: 600;
  margin: 16px 0 8px;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-divider {
  height: 1px;
  background: #e0e0e0;
  margin: 20px 0;
}

/* 提示文字 */
.hint {
  color: #999;
  font-size: 13px;
  margin: 4px 0;
}

.example {
  color: #666;
  font-size: 13px;
  margin: 4px 0;
  font-family: 'Courier New', monospace;
}

.example-box {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 12px;
  margin: 8px 0;
  font-size: 13px;
  line-height: 1.8;
}

/* 表单元素 */
input[type="text"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.3s;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #5b8cfa;
}

textarea {
  resize: vertical;
  font-family: 'Courier New', monospace;
  min-height: 80px;
}

.form-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.form-group {
  flex: 1;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 13px;
  color: #666;
}

/* 按钮 */
.btn {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: #5b8cfa;
  color: #fff;
}

.btn-primary:hover {
  background: #4a7ae8;
}

.btn-secondary {
  background: #42c9c2;
  color: #fff;
}

.btn-secondary:hover {
  background: #3ab8b1;
}

.btn-block {
  width: 100%;
  margin-top: 12px;
}

.btn-small {
  padding: 4px 12px;
  font-size: 13px;
}

.btn-large {
  padding: 16px 32px;
  font-size: 16px;
  width: 100%;
}

.btn-edit {
  background: #42c9c2;
  color: #fff;
  padding: 6px 12px;
  font-size: 13px;
}

.btn-edit:hover {
  background: #3ab8b1;
}

.btn-delete {
  background: #f44336;
  color: #fff;
  padding: 6px 12px;
  font-size: 13px;
}

.btn-delete:hover {
  background: #d32f2f;
}

/* 列表项 */
.item-list {
  margin-top: 16px;
}

.item-card {
  background: #fffbf0;
  border: 1px solid #f0e8d0;
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: box-shadow 0.2s;
}

.item-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.item-content {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.item-actions {
  display: flex;
  gap: 8px;
}

.card-icon,
.user-icon,
.email-icon,
.password-icon {
  font-size: 18px;
}

.card-number,
.email-text,
.password-text {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: #333;
}

.user-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-name {
  font-weight: 600;
  font-size: 14px;
  color: #333;
}

.user-details {
  font-size: 12px;
  color: #666;
  margin-top: 4px;
  margin-left: 26px;
}

.password-time {
  font-size: 12px;
  color: #999;
  margin-left: auto;
}

.empty-hint {
  text-align: center;
  color: #999;
  padding: 40px 20px;
  font-size: 14px;
}

/* 邮箱计数 */
.email-count {
  text-align: center;
  margin-top: 16px;
  padding: 12px;
  background: #f5f5f5;
  border-radius: 6px;
  font-size: 16px;
  color: #666;
}

.email-count span {
  color: #5b8cfa;
  font-weight: 600;
  font-size: 24px;
}

/* 固定邮箱区域 */
.fixed-email-section {
  background: #e3f2fd;
  border: 1px solid #90caf9;
  border-radius: 6px;
  padding: 16px;
  margin: 16px 0;
}

.fixed-email-section textarea {
  background: #fff;
}

/* {{ AURA-X: Add - 主程序页面样式. Approval: 寸止 }} */
/* 主程序页面 - 统计数据 */
.stats-row {
  display: flex;
  justify-content: space-around;
  margin-bottom: 20px;
  padding: 16px;
  background: #f9f9f9;
  border-radius: 8px;
}

.stat-item {
  text-align: center;
}

.stat-label {
  font-size: 13px;
  color: #666;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: #5b8cfa;
}

/* 操作卡片 */
.action-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.action-card {
  width: 100%;
  padding: 20px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
  text-align: left;
  color: #fff;
}

.card-register {
  background: linear-gradient(135deg, #42c9c2 0%, #5b8cfa 100%);
}

.card-bind {
  background: linear-gradient(135deg, #ffb75e 0%, #ed8f03 100%);
}

.card-all {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.action-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.card-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.card-desc {
  font-size: 13px;
  opacity: 0.9;
}

/* 重要提示框 */
.important-notice {
  display: flex;
  gap: 12px;
  background: #fff8e1;
  border: 2px solid #ffb74d;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
}

.notice-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.notice-content {
  flex: 1;
}

.notice-title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 8px;
  color: #333;
}

.notice-content div {
  margin: 4px 0;
  font-size: 13px;
  color: #666;
}

/* 分组标题 */
.section-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 8px;
}

.section-icon {
  font-size: 18px;
}

.section-title-inline {
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

/* 套餐选择 */
.plan-select {
  width: 100%;
  margin-bottom: 4px;
}

/* 配置状态 */
.config-status {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 12px;
  margin: 12px 0;
}

.status-item {
  display: flex;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #e0e0e0;
}

.status-item:last-child {
  border-bottom: none;
}

.status-icon {
  width: 32px;
  font-size: 16px;
}

.status-label {
  flex: 1;
  font-size: 14px;
  color: #666;
}

.status-count {
  font-weight: 600;
  color: #5b8cfa;
}

.status-badge {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  background: #e0e0e0;
  color: #666;
}

.status-success {
  background: #c8e6c9;
  color: #2e7d32;
}

.status-warning {
  background: #fff3cd;
  color: #856404;
}

/* 作者信息框 */
.author-box {
  background: linear-gradient(135deg, #e3f2fd 0%, #e1f5fe 100%);
  border: 1px solid #90caf9;
  border-radius: 8px;
  padding: 16px;
  margin: 16px 0;
}

.author-title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 12px;
  color: #333;
}

.author-item {
  display: flex;
  align-items: center;
  margin: 8px 0;
  font-size: 14px;
}

.author-icon {
  width: 24px;
  margin-right: 4px;
}

.author-label {
  color: #666;
  margin-right: 4px;
}

.author-item a {
  color: #5b8cfa;
  text-decoration: none;
}

.author-item a:hover {
  text-decoration: underline;
}

/* 操作手册 */
.manual-box {
  text-align: center;
  margin-top: 16px;
}

.btn-manual {
  width: 100%;
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  color: #1976d2;
  padding: 12px;
  border: 2px solid #64b5f6;
}

.btn-manual:hover {
  background: linear-gradient(135deg, #bbdefb 0%, #90caf9 100%);
}

/* 验证码页面 */
.verify-status {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

/* Toast通知 */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #333;
  color: #fff;
  padding: 12px 24px;
  border-radius: 4px;
  opacity: 0;
  transition: all 0.3s;
  z-index: 1000;
}

.toast.show {
  opacity: 0.9;
  transform: translateX(-50%) translateY(0);
}

/* {{ AURA-X: Modify - 账号卡片样式改为白色背景. Approval: 寸止 }} */
/* 账号卡片样式 - 白色背景+彩色元素 */
.account-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  color: #2c3e50;
  border: 1px solid #f0f0f0;
}

.account-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.account-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.account-tenant {
  font-size: 18px;
  font-weight: 700;
  color: #2c3e50;
}

.account-status {
  padding: 4px 12px;
  background: #e8f9f0;
  border: 1px solid #2ed573;
  border-radius: 16px;
  font-size: 12px;
  color: #2ed573;
  font-weight: 600;
}

.account-date-row {
  font-size: 13px;
  color: #7f8c8d;
  margin-bottom: 12px;
}

/* {{ AURA-X: Add - 邮箱行样式. Approval: 寸止 }} */
.account-email-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 16px;
}

.account-email-row .email-icon {
  font-size: 16px;
}

.account-email-row .email-text {
  flex: 1;
  font-size: 14px;
  color: #495057;
  font-family: 'Courier New', monospace;
}

.account-email-row .copy-icon-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.2s;
}

.account-email-row .copy-icon-btn:hover {
  background: #e9ecef;
}

.account-info {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.info-badge {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
}

.info-badge.info-expiry {
  background: #fff5e6;
}

.info-badge.info-credits {
  background: #e8f9f0;
}

.info-badge.info-expiry .badge-value {
  color: #ff9800;
}

.info-badge.info-credits .badge-value {
  color: #2ed573;
  font-size: 20px;
  font-weight: 700;
}

.badge-label {
  font-size: 12px;
  color: #95a5a6;
  display: block;
  margin-bottom: 6px;
}

.badge-value {
  font-size: 15px;
  font-weight: 600;
  color: #2c3e50;
}

.account-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.action-icon-btn {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 12px;
  background: #f8f9fa;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e9ecef;
}

.action-icon-btn:hover {
  transform: scale(1.05);
  background: #e9ecef;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.action-icon-btn.delete-btn {
  background: #fee;
  border-color: #fcc;
}

.action-icon-btn.delete-btn:hover {
  background: #fcc;
  border-color: #faa;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.3s;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.btn-danger {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.3s;
}

.btn-danger:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(245, 87, 108, 0.3);
}

.item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
